package com.lu.service.dormitory;

import com.lu.entity.Dormitory;

import java.util.List;

public interface DormitoryServices {
    //查询所有宿舍信息
    List<Dormitory> getDormitory();

    //插入宿舍数据
    void addDormitory(Dormitory dormitory);

    //根据id查询宿舍数据
    List<Dormitory> findDormitoryById(Integer id);

    //修改宿舍信息
    void updateDormitory(Dormitory dormitory);

    //根据id删除宿舍数据
    void deleteDormitory(Integer id);

    //根据传入的寝室号和宿舍楼查询对应的数据
    List<Dormitory> findDormitoryByName(Dormitory dormitory);
}
